package com.taiic.fourcamera;

import android.content.Context;
import android.util.Log;

public class CameraManager {

    // Used to load the 'fourcamera' library on application startup.
    static {
        System.loadLibrary("fourcamera");
    }

    private static final String TAG = "taiic_sensorManager";
    private static CameraManager instance;
    private CameraManager(){
        //构造函数
        Log.i(TAG, "CameraManager: 构造函数");
    }
    public static synchronized CameraManager getInstance(){
        if(instance == null)
            instance = new CameraManager();
        return instance;
    }

    public void testCamera(Context context){
        UsbCamerManager.getInstance().initCameraHelper(context);

        UsbCamerManager.getInstance().destoryCamera();
    }
    /**
     * A native method that is implemented by the 'fourcamera' native library,
     * which is packaged with this application.
     */
    public native String stringFromJNI();
}